import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-04-13
 * Time: 20:20
 */
public class Test {
    public static void main(String[] args) {
        Deque<Integer> deque = new LinkedList<>();
        deque.offer(1);
        Deque<Integer> stack = new LinkedList<>();//链式栈
        stack.push(2);
        Deque<Integer> stack1 = new ArrayDeque<>();//顺序栈
    }
    public static void main1(String[] args) {
//        Queue<Integer> queue = new LinkedList<>();
//        queue.offer(1);
//        queue.offer(2);
//        int val = queue.poll();
//        System.out.println(val);
//        int val2 = queue.peek();
//        System.out.println(val2);
        MyQueue myQueue = new MyQueue();
        myQueue.offer(1);
        myQueue.offer(2);
        int val3 = myQueue.poll();
        int val4 = myQueue.peek();
        System.out.println(val3);
        System.out.println(val4);
    }
}
